package com.qcby.dao;

import com.qcby.entity.Sale;
import com.qcby.model.Change;
import com.qcby.model.Sell;
import org.apache.ibatis.annotations.Param;

public interface SaleMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Sale record);

    int insertSelective(Sale record);

    Sale selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Sale record);

    int updateByPrimaryKey(Sale record);

  void updateByPriceAc(@Param("id") Integer id,@Param("price") Integer price,@Param("currentPrice") Integer currentPrice);

  void insertBySell(Sell sell);

  Integer selectPriceById(Integer id);

  Integer selectUserIdById(Integer id);

  Integer selectEquipIdById(Integer id);

  void updataByUserId(Change swap);
}